/**
 * created by yangtong on 2025/4/5 15:18:33<br/>
 * 路由文件
 */
import {createRouter, createWebHistory} from 'vue-router'
import routeData from './routes-example.ts'

const router = createRouter({
    //路由模式
    history: createWebHistory(),
    //路由
    routes: routeData,
    //滚动行为
    scrollBehavior() {
        //一滚动，水平方向归零，top方向也归零
        return{
            left: 0,
            top: 0
        }
    }
})

//导出router
export default router